const { DataTypes } = require("sequelize");
const seq = require("../db/seq");

const Number = seq.define(
  "lotter_number",
  {
    numberName: {
      type: DataTypes.STRING,
      allowNull: false,
      unique: true,
      comment: "号码名称，唯一",
    },
    numberNumber: {
      type: DataTypes.STRING,
      allowNull: false,
      comment: "号码",
    },
  },
  {
    paranoid: true,
  }
);

// 强制同步数据库 创建数据表
// Number.sync({
//   force: true,
// })

module.exports = Number;
